package com.sz.mes.entity.warehouse;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 货格对应商品表 Entity定义
 * @author hem
 * @version 1.0
 * @date 2023-05-25
 * Copyright © szhs
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Accessors(chain = true)
@TableName("warehouse_lattice_goods")
public class LatticeGoods extends BaseCustomEntity {

    private static final long serialVersionUID = -4116207497019903341L;

    /**
     * 商品
     */
    @TableField()
    private Long goodsId;

    /**
     * 货架格子
     */
    @TableField()
    private Long warehouseLatticeId;

    /**
     * 商品数量
     */
    @TableField()
    private Integer quantity;

    /**
     * 货格位置
     */
    @Length(max = 100, message = "货格位置长度应小于100")
    @TableField()
    private String lable;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 商品编码
     */
    @Length(max = 100, message = "商品编码长度应小于100")
    @TableField()
    private String goodsCode;

    /**
     * 商品名称
     */
    @Length(max = 100, message = "商品名称长度应小于100")
    @TableField()
    private String goodsName;

    /**
     * 商品规格
     */
    @Length(max = 100, message = "商品规格长度应小于100")
    @TableField()
    private String goodsSpecifications;

    /**
     * 入库单号
     */
    @Length(max = 100, message = "入库单号长度应小于100")
    @TableField()
    private String instockNum;

    /**
     * 出库单号
     */
    @Length(max = 100, message = "出库单号长度应小于100")
    @TableField()
    private String outboundNum;

    /**
     * 任务单号
     */
    @Length(max = 100, message = "任务单号长度应小于100")
    @TableField()
    private String taskNum;

    /**
     * 来源单据号
     */
    @Length(max = 100, message = "来源单据号长度应小于100")
    @TableField()
    private String sourceNum;

    /**
     * 单据编号
     */
    @Length(max = 100, message = "单据编号长度应小于100")
    @TableField()
    private String receiptNum;

    /**
     * 单位
     */
    @Length(max = 100, message = "单位长度应小于100")
    @TableField()
    private String unit;

    /**
     * 拼接数量
     */
    @Length(max = 100, message = "拼接数量长度应小于100")
    @TableField()
    private String totalQuantity;
}
